package com.wise.servive;

import com.wise.dao.BlogDao;
import com.wise.pojo.Blog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogService {

    @Autowired
    BlogDao blogDao;

    public List<Blog> findBlogByUid(int uid){
        return blogDao.findBlogByUid(uid);
    }

    public List<Blog> findBlogByTid(int tid){
        return blogDao.findBlogByTid(tid);
    }

    public int findBlogCountByUid(int uid){
        return blogDao.findBlogCountByUid(uid);
    }
}
